Termination w.r.t. Q of the following Term Rewriting System could not be shown:
Q restricted rewrite system:
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
Q is empty.
↳ QTRS
↳ Non-Overlap Check
Q restricted rewrite system:
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
Q is empty.
The TRS is non-overlapping. Hence, we can switch to innermost.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
Q restricted rewrite system:
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
Q DP problem:
The TRS P consists of the following rules:
DEL2(x, cons2(y, z)) -> IF3(eq2(x, y), z, cons2(y, del2(x, z)))
MIN2(x, cons2(y, z)) -> MIN2(x, z)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
LE2(s1(x), s1(y)) -> LE2(x, y)
DEL2(x, cons2(y, z)) -> DEL2(x, z)
MINSORT1(cons2(x, y)) -> DEL2(min2(x, y), cons2(x, y))
MIN2(x, cons2(y, z)) -> MIN2(y, z)
MIN2(x, cons2(y, z)) -> IF3(le2(x, y), min2(x, z), min2(y, z))
MINSORT1(cons2(x, y)) -> MIN2(x, y)
MIN2(x, cons2(y, z)) -> LE2(x, y)
MINSORT1(cons2(x, y)) -> MINSORT1(del2(min2(x, y), cons2(x, y)))
DEL2(x, cons2(y, z)) -> EQ2(x, y)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
Q DP problem:
The TRS P consists of the following rules:
DEL2(x, cons2(y, z)) -> IF3(eq2(x, y), z, cons2(y, del2(x, z)))
MIN2(x, cons2(y, z)) -> MIN2(x, z)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
LE2(s1(x), s1(y)) -> LE2(x, y)
DEL2(x, cons2(y, z)) -> DEL2(x, z)
MINSORT1(cons2(x, y)) -> DEL2(min2(x, y), cons2(x, y))
MIN2(x, cons2(y, z)) -> MIN2(y, z)
MIN2(x, cons2(y, z)) -> IF3(le2(x, y), min2(x, z), min2(y, z))
MINSORT1(cons2(x, y)) -> MIN2(x, y)
MIN2(x, cons2(y, z)) -> LE2(x, y)
MINSORT1(cons2(x, y)) -> MINSORT1(del2(min2(x, y), cons2(x, y)))
DEL2(x, cons2(y, z)) -> EQ2(x, y)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph contains 5 SCCs with 6 less nodes.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
EQ2(s1(x), s1(y)) -> EQ2(x, y)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
By using an argument filtering and a montonic ordering, at least one Dependency Pair of this SCC can be strictly oriented.
EQ2(s1(x), s1(y)) -> EQ2(x, y)
Used argument filtering: EQ2(x1, x2) = x2
s1(x1) = s1(x1)
Used ordering: Quasi Precedence:
trivial
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
Q DP problem:
P is empty.
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
DEL2(x, cons2(y, z)) -> DEL2(x, z)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
By using an argument filtering and a montonic ordering, at least one Dependency Pair of this SCC can be strictly oriented.
DEL2(x, cons2(y, z)) -> DEL2(x, z)
Used argument filtering: DEL2(x1, x2) = x2
cons2(x1, x2) = cons1(x2)
Used ordering: Quasi Precedence:
trivial
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
Q DP problem:
P is empty.
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
LE2(s1(x), s1(y)) -> LE2(x, y)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
By using an argument filtering and a montonic ordering, at least one Dependency Pair of this SCC can be strictly oriented.
LE2(s1(x), s1(y)) -> LE2(x, y)
Used argument filtering: LE2(x1, x2) = x2
s1(x1) = s1(x1)
Used ordering: Quasi Precedence:
trivial
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
Q DP problem:
P is empty.
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
MIN2(x, cons2(y, z)) -> MIN2(x, z)
MIN2(x, cons2(y, z)) -> MIN2(y, z)
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
By using an argument filtering and a montonic ordering, at least one Dependency Pair of this SCC can be strictly oriented.
MIN2(x, cons2(y, z)) -> MIN2(x, z)
MIN2(x, cons2(y, z)) -> MIN2(y, z)
Used argument filtering: MIN2(x1, x2) = x2
cons2(x1, x2) = cons1(x2)
Used ordering: Quasi Precedence:
trivial
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPAfsSolverProof
↳ QDP
↳ PisEmptyProof
↳ QDP
Q DP problem:
P is empty.
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.
↳ QTRS
↳ Non-Overlap Check
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
MINSORT1(cons2(x, y)) -> MINSORT1(del2(min2(x, y), cons2(x, y)))
The TRS R consists of the following rules:
le2(0, y) -> true
le2(s1(x), 0) -> false
le2(s1(x), s1(y)) -> le2(x, y)
eq2(0, 0) -> true
eq2(0, s1(y)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
minsort1(nil) -> nil
minsort1(cons2(x, y)) -> cons2(min2(x, y), minsort1(del2(min2(x, y), cons2(x, y))))
min2(x, nil) -> x
min2(x, cons2(y, z)) -> if3(le2(x, y), min2(x, z), min2(y, z))
del2(x, nil) -> nil
del2(x, cons2(y, z)) -> if3(eq2(x, y), z, cons2(y, del2(x, z)))
The set Q consists of the following terms:
le2(0, x0)
le2(s1(x0), 0)
le2(s1(x0), s1(x1))
eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
if3(true, x0, x1)
if3(false, x0, x1)
minsort1(nil)
minsort1(cons2(x0, x1))
min2(x0, nil)
min2(x0, cons2(x1, x2))
del2(x0, nil)
del2(x0, cons2(x1, x2))
We have to consider all minimal (P,Q,R)-chains.